package com.spark.incoicings.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.spark.incoicings.vo.WarehouseReceiptVo;
import com.spark.invoicings.entity.WarehouseReceipt;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface WarehouseReceiptMapper extends BaseMapper<WarehouseReceipt> {

    /**
     * 根据id获取入库单
     * @param id
     * @return
     */
    WarehouseReceipt selectWarehouseReceiptById(Integer id);

    /**
     * 查询所有的入库单
     * @param map
     * @return
     */
    List<WarehouseReceipt> selectWarehouseReceiptAll(Map<String, Object> map);

    /**
     * 根据入库单id获取字典数据
     * @param id
     * @return
     */
    WarehouseReceiptVo selectWarehouseReceiptVo(Integer id);

}
